package com.example.demoface.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.demoface.domian.User;
import org.apache.ibatis.annotations.*;

import java.util.List;

@Mapper
public interface UserMapper extends BaseMapper<User> {
//
//    @Select("SELECT * FROM user WHERE dept_id = #{deptId}")
//    List<User> selectUsersByDeptId(@Param("deptId") Integer deptId);



     int insertUser(User user);
     User selectUsersWithDept(User user);
     User selectOneUserByTele(String tele);

     List<User> selectUsers(User user);







//
//    @Update("UPDATE user SET email = #{email} WHERE id = #{id}")
//    int updateEmailById(@Param("id") Long id, @Param("email") String email);
//
//    int deleteUserById(@Param("userId") String userId);

//    @Delete("DELETE FROM user WHERE id = #{id}")
//    int deleteById(Long id);
}
